/**  
 * All rights Reserved, Designed By www.woniuxy.com
 * @Title:  Account.java   
 * @Package com.woniu.domain   
 * @Description:    Description  
 * @author: 蜗牛学院  
 * @date:   2019年7月28日 下午1:47:42
 * @user:   Administrator  
 * @version V1.0 
 * @Copyright: 2019 www.woniuxy.com Inc. All rights reserved. 
 * 注意：本内容仅限于成都蜗牛创想科技有限公司，禁止外泄以及用于其他的商业目
 */ 
package com.woniu.service.impl;

import java.util.List;

/**
 * @author Administrator
 *
 */
public class PageBean<T> {
	/**
	 * 当前第几页
	 */
	private int currentPage;
	/**
	 * 一页显示多少条数据
	 */
	private int pageSize;
	/**
	 * 共多少条数据
	 * 
	 */
	private int totalSize;
	/**
	 * 一共多少页
	 */
	private int totalPage;
	/**
	 * 从数据库中查询的数据集合
	 */
	private List<T> list;
	/**
	 * @return the currentPage
	 */
	
	public int getCurrentPage() {
		return currentPage;
	}
	/**
	 * @return the list
	 */
	public List<T> getList() {
		return list;
	}
	/**
	 * @param list the list to set
	 */
	public void setList(List<T> list) {
		this.list = list;
	}
	/**
	 * @param currentPage the currentPage to set
	 */
	public void setCurrentPage(int currentPage) {
		this.currentPage = currentPage;
	}
	/**
	 * @return the pageSize
	 */
	public int getPageSize() {
		return pageSize;
	}
	/**
	 * @param pageSize the pageSize to set
	 */
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	/**
	 * @return the totalSize
	 */
	public int getTotalSize() {
		return totalSize;
	}
	/**
	 * @param totalSize the totalSize to set
	 */
	public void setTotalSize(int totalSize) {
		this.totalSize = totalSize;
	}
	/**
	 * @return the totalPage
	 */
	public int getTotalPage() {
		return totalPage;
	}
	/**
	 * @param totalPage the totalPage to set
	 */
	public void setTotalPage(int totalPage) {
		this.totalPage = totalPage;
	}
	@Override
	public String toString() {
		return "PageBean [currentPage=" + currentPage + ", pageSize=" + pageSize + ", totalSize=" + totalSize
				+ ", totalPage=" + totalPage + "]";
	}
	public PageBean(int currentPage, int pageSize, int totalSize, int totalPage) {
		super();
		this.currentPage = currentPage;
		this.pageSize = pageSize;
		this.totalSize = totalSize;
		this.totalPage = totalPage;
	}
	public PageBean() {
		super();
	}
	
}
